package entities
{
	import org.flixel.FlxG;
	import org.flixel.plugin.photonstorm.FlxDelay;

	public class Minion extends Enemy
	{
		
		private var count:Number;
		
		public function Minion(X:uint,Y:uint,infos:Object) {
			super(X,Y,infos);
			turnAround();
		}
		
		override public function update():void{
			super.update();
			if(!onScreen()) {
				count += FlxG.elapsed;
				if ( count > 3 ) exists = false;
				return; 
			} 
			count = 0;
		}
	}
}